package dao;

import java.sql.Connection;

public class DAOFactory {
	public static final Connection connection = DBConnection.getInstance();
	
	public static UserDAO getUserDAO() {
		return new UserDAO(connection);
	}
	
	public static RecipeDAO getRecipeDAO() {
		return new RecipeDAO(connection);
	}
	
	public static CommentDAO getCommentDAO() {
		return new CommentDAO(connection);
	}
	
	public static CategoryDAO getCategoryDAO() {
		return new CategoryDAO(connection);
	}
	
	public static RatingDAO getRatingDAO() {
		return new RatingDAO(connection);
	}
}
